$(document).ready(initialize);

function initialize(){
	$(window).bind("resize", methodToFixLayout);

	if ( $(window).width() < 768) {
	   $(".span2").insertAfter(".span10");
	}

	function methodToFixLayout(e) {
		var winHeight = $(window).height();
		var winWidth = $(window).width();

		if (winWidth < 768) {
			$(".span2").insertAfter(".span10");
		} else {
			$(".span10").insertAfter(".span2");
		}
	}
};